import type { RouteMeta } from 'vue-router';

export interface RouteItem {
  path: string;
  component: any;
  meta: RouteMeta;
  name?: string;
  alias?: string | string[];
  redirect?: string;
  caseSensitive?: boolean;
  children?: RouteItem[];
}

export interface IOldMenuModule {
  modules: IOldMenuModuleItem[];
}
interface IOldMenuModuleItem {
  name: string;
  icon: string;
  id: number;
  url: string;
  menus: IOldMenuChild[];
}

interface IOldMenuChild {
  name: string;
  icon: string;
  id: number;
  url: string;
}

/**
 * @description: Get menu return value
 */
export type getMenuListResultModel = RouteItem[];
